package cuiyt.juc.future;

import java.util.Random;
import java.util.concurrent.Callable;

/**
 * @author cyt
 * @create 2020-11-11 17:52
 */
public class CallableTask implements Callable<Integer> {


    @Override
    public Integer call() throws Exception {
        Thread.sleep(3000);
        return new Random().nextInt();
    }
}
